home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 1 / CU Amiga Magazine CD-ROM Special Edition (1995)(EMAP Images)(GB)[Issue 1995-11].iso / Aminet / comm / tcp / AmiTCPsdk_40.lha / AmiTCP-4.0 / netinclude / grp.h < prev    next >
C/C++ Source or Header  |  1994-10-03  |  787b  |  32 lines

  1. #ifndef GRP_H
  2. #define GRP_H \
  3.        "$Id: grp.h,v 4.1 1994/10/03 20:52:20 ppessi Exp $"
  4. /*
  5.  *    Definitions of gid_t and group structure for 32 bit C compilers
  6.  *
  7.  *      Copyright © 1994 AmiTCP/IP Group,
  8.  *                       Network Solutions Development, Inc.
  9.  *                       All rights reserved.
  10.  */
  11.  
  12. #ifndef SYS_TYPES_H
  13. #include <sys/types.h>
  14. #endif
  15.  
  16. /* The group structure */
  17. struct group {
  18.   char   *gr_name;              /* Group name.  */
  19.   char   *gr_passwd;            /* Password.    */
  20.   gid_t   gr_gid;               /* Group ID.    */
  21.   char  **gr_mem;               /* Member list. */
  22. };
  23.  
  24. struct group *getgrgid(gid_t gid);
  25. struct group *getgrnam(const char * name);
  26.  
  27. void setgrent(void);
  28. struct group *getgrent(void);
  29. void endgrent(void);
  30.  
  31. #endif /* GRP_H */
  32.